import http from "@/utils/request"

// 请求首页
export const getDataApi = () => http.get("/home/getData"); // 返回一个promise对象，我们通过.then访问

// 获取用户数据
export const getUserDataApi = (data) => http.get("/user/getUser", data); 

// 修改用户数据
export const modifyUserDataApi = (data) => http.post("/user/edit", data); 

// 添加用户数据
export const increaseUserDataApi = (data) => http.post("/user/add", data); 

// 删除用户数据
export const deleteUserDataApi = (data) => http.post("/user/del", data); 

// 用户登录
export const logInApi = (data) => http.post("/permission/getMenu", data); 